#!/bin/bash
# by: lilongen (lilongen@163.com, microli@sz.webex.com)
cmd=$1
pwd=$2

expect <<EOD
spawn $cmd
expect "password:"
send "$pwd\r"
expect eof
EOD
